package org.jeecg.modules.friends.store.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * MomentsEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "moments",
    schema = "make_friends"
)
public class MomentsEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId("id")
  private Long id;

  /**
   */
  @TableField(
      value = "add_time",
      insert = "now()"
  )
  private Date addTime;

  /**
   */
  @TableField(
      value = "update_time",
      insert = "now()",
      update = "now()"
  )
  private Date updateTime;

  /**
   * 内容
   */
  @TableField("content")
  private String content;

  /**
   * 是否隐藏了的 , 1是
   */
  @TableField("hidden_flag")
  private Boolean hiddenFlag;

  /**
   * 点赞数
   */
  @TableField("like_count")
  private Integer likeCount;

  /**
   * 是否精选
   */
  @TableField("selected")
  private Boolean selected;

  /**
   * 状态
   */
  @TableField("status")
  private Integer status;

  /**
   * 用户ID
   */
  @TableField("user_id")
  private Long userId;

  @Override
  public final Class entityClass() {
    return MomentsEntity.class;
  }
}
